import matplotlib.pyplot as plt

score = [107, 77, 56, 78, 77, 55, 55, 99, 66, 88, 35, 87, 95, 57, 69, 54, 98, 51, 36, 65, 97, ]
plt.rcParams['font.sans-serif']= ['SimHei']
plt.xlabel('分数')
plt.ylabel('学生数量')
plt.title('学生语文成绩分布直方图')
plt.hist(score, bins=range(0, 150, 10), facecolor='red', edgecolor='black')
plt.show()